﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using static Luna小店.UC.门店下单.form.Frm订单一览;

namespace Luna小店.UC.样品管理
{
    public partial class Form样品门户 : DevExpress.XtraEditors.XtraForm
    {
        public Form样品门户()
        {
            InitializeComponent();
            // Handling the QueryControl event that will populate all automatically generated Documents
            this.widgetView1.QueryControl += widgetView1_QueryControl;
        }

        // Assigning a required content for each auto generated Document
        void widgetView1_QueryControl(object sender, DevExpress.XtraBars.Docking2010.Views.QueryControlEventArgs e)
        {

            if (e.Document == xtraUserControl功能菜单Document)
                e.Control = new Luna小店.UC.样品管理.样品门户UC.XtraUserControl功能菜单();
            if (e.Document == xtraUserControl样品订单一览Document)
                e.Control = new Luna小店.UC.样品管理.样品门户UC.XtraUserControl样品订单一览(Enum订单类别.样品订单);
            if (e.Control == null)
                e.Control = new System.Windows.Forms.Control();
        }
    }
}